package com.py.credit.entity;

import java.util.Date;

/**
 * 批次日志bean
 * 
 * @author jicm
 * 
 */
public class BatchLog {
	/**
	 * 采集批次号(一定规则系统生成)
	 */
	private String id;
	/**
	 * 采集目标表ID
	 */
	private int target;
	/**
	 * 采集数据配置ID(前置机方式)
	 */
	private int datasourceId;
	/**
	 * 采集类型(0文件，1前置机)
	 */
	private String type;
	/**
	 * 上報人id
	 */
	private int managerId;
	/**
	 * 上报人部门id
	 */
	private int deptId;
	/**
	 * 上报人名称
	 */
	private String realName;
	/**
	 * 采集开始时间
	 */
	private Date startTime;
	/**
	 * 采集结束时间
	 */
	private Date endTime;
	/**
	 * 采集结果(S成功，F失败，P部分成功，C已撤销)
	 */
	private String result;
	/**
	 * 采集总共条数
	 */
	private int tcount;
	/**
	 * 采集成功条数
	 */
	private int scount;
	/**
	 * 采集失败条数
	 */
	private int fcount;
	/**
	 * 重复数据条数
	 */
	private int rcount;
	/**
	 * 待关联数据条数
	 */
	private int waitCount;
	/**
	 * 总数
	 */
	private int num;
	/**
	 * 批次采集状态0未处理；1处理中；2处理完成；
	 */
	private String status;

	/**
	 * 批次数据可更改状态,Y:可更改，N:不可更改
	 */

	private String updateStatus;

	/**
	 * 信息资源名称
	 */

	private String tableName;

	/**
	 * 部门中文名称
	 */

	private String deptName;

	/**
	 * 设权批次数据可更改时间
	 */
	private Date updateEnableTime;
	/**
	 * 批次初始成功条数
	 */
	private int bscount;
	/**
	 * 批次初始总条数
	 */
	private int btcount;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getTarget() {
		return target;
	}

	public void setTarget(int target) {
		this.target = target;
	}

	public int getDatasourceId() {
		return datasourceId;
	}

	public void setDatasourceId(int datasourceId) {
		this.datasourceId = datasourceId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getManagerId() {
		return managerId;
	}

	public void setManagerId(int managerId) {
		this.managerId = managerId;
	}

	public int getDeptId() {
		return deptId;
	}

	public void setDeptId(int deptId) {
		this.deptId = deptId;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public int getTcount() {
		return tcount;
	}

	public void setTcount(int tcount) {
		this.tcount = tcount;
	}

	public int getScount() {
		return scount;
	}

	public void setScount(int scount) {
		this.scount = scount;
	}

	public int getFcount() {
		return fcount;
	}

	public void setFcount(int fcount) {
		this.fcount = fcount;
	}

	public int getRcount() {
		return rcount;
	}

	public void setRcount(int rcount) {
		this.rcount = rcount;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getUpdateStatus() {
		return updateStatus;
	}

	public void setUpdateStatus(String updateStatus) {
		this.updateStatus = updateStatus;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public Date getUpdateEnableTime() {
		return updateEnableTime;
	}

	public void setUpdateEnableTime(Date updateEnableTime) {
		this.updateEnableTime = updateEnableTime;
	}

	public int getWaitCount() {
		return waitCount;
	}

	public void setWaitCount(int waitCount) {
		this.waitCount = waitCount;
	}

	/**
	 * @return the bscount
	 */
	public int getBscount() {
		return bscount;
	}

	/**
	 * @param bscount
	 *            the bscount to set
	 */
	public void setBscount(int bscount) {
		this.bscount = bscount;
	}

	/**
	 * @return the btcount
	 */
	public int getBtcount() {
		return btcount;
	}

	/**
	 * @param btcount
	 *            the btcount to set
	 */
	public void setBtcount(int btcount) {
		this.btcount = btcount;
	}

	@Override
	public String toString() {
		return "BatchLog [id=" + id + ", target=" + target + ", datasourceId=" + datasourceId + ", type=" + type
				+ ", managerId=" + managerId + ", deptId=" + deptId + ", realName=" + realName + ", startTime="
				+ startTime + ", endTime=" + endTime + ", result=" + result + ", tcount=" + tcount + ", scount="
				+ scount + ", fcount=" + fcount + ", rcount=" + rcount + ", waitCount=" + waitCount + ", num=" + num
				+ ", status=" + status + ", updateStatus=" + updateStatus + ", tableName=" + tableName + ", deptName="
				+ deptName + ", updateEnableTime=" + updateEnableTime + ", bscount=" + bscount + ", btcount=" + btcount
				+ "]";
	}
}
